package com.example.pwj.ffstudy.http;

/**
 * Created by admin on 2017/3/20.
 */

public class Url {
    public static final String URL_GANK = "http://gank.io/api/";
    public static final String URL_ZHIHU = "https://news-at.zhihu.com/api/4/";
    public static final String URL_DOUBAN = "http://gank.io/api/";
    public static String getUrlbyType(int urlType) {
        String url = URL_GANK;
        switch (urlType) {
            case Api.TYPE_GANK:
                url = URL_GANK;
                break;
            case Api.TYPE_ZHIHU:
                url = URL_ZHIHU;
                break;
            case Api.TYPE_DOUBAN:
                url = URL_DOUBAN;
                break;
            default:
                break;
        }
        return url;
    }
}
